<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

<TITLE>Switch -SC&lt;charset&gt;[objects] - specify the character set</TITLE>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<P class="title"><A NAME="HELPSwSC"></A>Switch <B>-SC&lt;charset&gt;[objects]</B>
- specify the character set<hr></P>

<p>This switch allows to specify the character set for list files, log files
and archive comment files.</p>

<p>'Charset' parameter is mandatory and can have one of the following
values:<br>
</p>

<p>
<table>
<tr><td><strong>U</strong></td>
<td>Unicode UTF-16</td></tr>
<tr><td><strong>F</strong></td>
<td>Unicode UTF-8</td></tr>
<tr><td><strong>A</strong></td>
<td>Native single byte encoding, which is ANSI for Windows</td></tr>
<tr><td><strong>O</strong></td>
<td>OEM (DOS) encoding</td></tr>
</table>
</p>

<p>Endianness of source UTF-16 files, such as list files or comments,
is detected based on the byte order mark. If byte order mask is missing,
little endian encoding is assumed.</p>

<p>'Objects' parameter is optional and can have one of the following
values:<br>
</p>

<p>
<table>
<tr><td><strong>G</strong></td>
<td>Log files produced by <a href="HELPSwILOG.htm">-ilog</a> switch</td></tr>
<tr><td><strong>L</strong></td>
<td>List files</td></tr>
<tr><td><strong>C</strong></td>
<td>Comment files</td></tr>
</table>
</p>

<p>It is allowed to specify more than one object, for example, -scolc.
If 'objects' parameter is missing, 'charset' is applied to all objects.</p>

<p>This switch allows to specify the character set for files
in <A HREF="HELPSwZ.htm">-z&lt;file&gt;</A> switch, list files
and comment files written by <A HREF="HELPCmdCW.htm">cw</A> command.</p>

<h1><B>Examples</B></h1>

<ol>
  <li>Read names contained in 'list' using OEM encoding:</li>
</ol>
<blockquote>
  <p class="sample">WinRAR a -scol data @list</p>
</blockquote>
<ol start="2">
  <li>Read comment.txt as Unicode file:</li>
</ol>
<blockquote>
  <p class="sample">WinRAR c -scuc -zcomment.txt data</p>
</blockquote>
<ol start="3">
  <li>Write comment.txt as Unicode file:</li>
</ol>
<blockquote>
  <p class="sample">WinRAR cw -scuc data comment.txt</p>
</blockquote>
</BODY>
</HTML>
